/**
 * Generate time : 2011-11-24 5:59:06
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cl.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCLReport_Civilizationproduce table comment : 文明生产记录
 */
public class ZMCLReport_CivilizationProduce extends DaoEPBase {

	private String fdKeyId = " "; /* 主键 */
	private String fdReportId = " "; /* 安全报表ID */
	private String fdDate = " "; /* 日期 */
	private String fdDepartment = " "; /* 问题部门 */
	private String fdPlace = " "; /* 问题地点 */
	private String fdContent = " "; /* 问题内容 */
	private String fdReportPeopleId = " "; /* 记录人ID */
	private String fdReportPeople = " "; /* 记录人 */
	private String fdReportDepartmentId = " "; /* 记录部门ID */
	private String fdReportDepartment = " "; /* 记录部门 */
	private String fdReportTime = " "; /* 记录时间 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdReportId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("安全报表ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDate");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("日期");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDepartment");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("问题部门");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPlace");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("问题地点");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdContent");
		eiColumn.setFieldLength(1000);
		eiColumn.setDescName("问题内容");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdReportPeopleId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("记录人ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdReportPeople");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("记录人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdReportDepartmentId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("记录部门ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdReportDepartment");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("记录部门");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdReportTime");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("记录时间");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCLReport_CivilizationProduce() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - 主键
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdReportId - 安全报表ID
	 * 
	 * @return the fdReportId
	 */
	public String getFdReportId() {
		return this.fdReportId;
	}

	/**
	 * set the fdReportId - 安全报表ID
	 */
	public void setFdReportId(String fdReportId) {
		this.fdReportId = fdReportId;
	}

	/**
	 * get the fdDate - 日期
	 * 
	 * @return the fdDate
	 */
	public String getFdDate() {
		return this.fdDate;
	}

	/**
	 * set the fdDate - 日期
	 */
	public void setFdDate(String fdDate) {
		this.fdDate = fdDate;
	}

	/**
	 * get the fdDepartment - 问题部门
	 * 
	 * @return the fdDepartment
	 */
	public String getFdDepartment() {
		return this.fdDepartment;
	}

	/**
	 * set the fdDepartment - 问题部门
	 */
	public void setFdDepartment(String fdDepartment) {
		this.fdDepartment = fdDepartment;
	}

	/**
	 * get the fdPlace - 问题地点
	 * 
	 * @return the fdPlace
	 */
	public String getFdPlace() {
		return this.fdPlace;
	}

	/**
	 * set the fdPlace - 问题地点
	 */
	public void setFdPlace(String fdPlace) {
		this.fdPlace = fdPlace;
	}

	/**
	 * get the fdContent - 问题内容
	 * 
	 * @return the fdContent
	 */
	public String getFdContent() {
		return this.fdContent;
	}

	/**
	 * set the fdContent - 问题内容
	 */
	public void setFdContent(String fdContent) {
		this.fdContent = fdContent;
	}

	/**
	 * get the fdReportPeopleId - 记录人ID
	 * 
	 * @return the fdReportPeopleId
	 */
	public String getFdReportPeopleId() {
		return this.fdReportPeopleId;
	}

	/**
	 * set the fdReportPeopleId - 记录人ID
	 */
	public void setFdReportPeopleId(String fdReportPeopleId) {
		this.fdReportPeopleId = fdReportPeopleId;
	}

	/**
	 * get the fdReportPeople - 记录人
	 * 
	 * @return the fdReportPeople
	 */
	public String getFdReportPeople() {
		return this.fdReportPeople;
	}

	/**
	 * set the fdReportPeople - 记录人
	 */
	public void setFdReportPeople(String fdReportPeople) {
		this.fdReportPeople = fdReportPeople;
	}

	/**
	 * get the fdReportDepartmentId - 记录部门ID
	 * 
	 * @return the fdReportDepartmentId
	 */
	public String getFdReportDepartmentId() {
		return this.fdReportDepartmentId;
	}

	/**
	 * set the fdReportDepartmentId - 记录部门ID
	 */
	public void setFdReportDepartmentId(String fdReportDepartmentId) {
		this.fdReportDepartmentId = fdReportDepartmentId;
	}

	/**
	 * get the fdReportDepartment - 记录部门
	 * 
	 * @return the fdReportDepartment
	 */
	public String getFdReportDepartment() {
		return this.fdReportDepartment;
	}

	/**
	 * set the fdReportDepartment - 记录部门
	 */
	public void setFdReportDepartment(String fdReportDepartment) {
		this.fdReportDepartment = fdReportDepartment;
	}

	/**
	 * get the fdReportTime - 记录时间
	 * 
	 * @return the fdReportTime
	 */
	public String getFdReportTime() {
		return this.fdReportTime;
	}

	/**
	 * set the fdReportTime - 记录时间
	 */
	public void setFdReportTime(String fdReportTime) {
		this.fdReportTime = fdReportTime;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdReportId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportId")), fdReportId));
		setFdDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDate")), fdDate));
		setFdDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartment")), fdDepartment));
		setFdPlace(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlace")), fdPlace));
		setFdContent(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdContent")), fdContent));
		setFdReportPeopleId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportPeopleId")), fdReportPeopleId));
		setFdReportPeople(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportPeople")), fdReportPeople));
		setFdReportDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportDepartmentId")), fdReportDepartmentId));
		setFdReportDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportDepartment")), fdReportDepartment));
		setFdReportTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportTime")), fdReportTime));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdReportId", StringUtils.toString(fdReportId, eiMetadata.getMeta("fdReportId")));
		map.put("fdDate", StringUtils.toString(fdDate, eiMetadata.getMeta("fdDate")));
		map.put("fdDepartment", StringUtils.toString(fdDepartment, eiMetadata.getMeta("fdDepartment")));
		map.put("fdPlace", StringUtils.toString(fdPlace, eiMetadata.getMeta("fdPlace")));
		map.put("fdContent", StringUtils.toString(fdContent, eiMetadata.getMeta("fdContent")));
		map.put("fdReportPeopleId", StringUtils.toString(fdReportPeopleId, eiMetadata.getMeta("fdReportPeopleId")));
		map.put("fdReportPeople", StringUtils.toString(fdReportPeople, eiMetadata.getMeta("fdReportPeople")));
		map.put("fdReportDepartmentId", StringUtils.toString(fdReportDepartmentId, eiMetadata.getMeta("fdReportDepartmentId")));
		map.put("fdReportDepartment", StringUtils.toString(fdReportDepartment, eiMetadata.getMeta("fdReportDepartment")));
		map.put("fdReportTime", StringUtils.toString(fdReportTime, eiMetadata.getMeta("fdReportTime")));

		return map;

	}
}